using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

using VideoFileIngestion;


namespace ConsoleApplication1
{
    class Program
    {
        static void displayError(string errMessage)
        {
            Console.WriteLine(errMessage);
        }

        static void displayProgress( int percentage)
        {
           Console.WriteLine(percentage);
        }

        static void displayFrame(int frame)
        {
            Console.WriteLine(frame);
        }


        [STAThread]
        static void Main(string[] args)
        {
            VideoIngestion test = new VideoIngestion();
            VideoIngestion.disPlayDelegate trace = new VideoIngestion.disPlayDelegate(displayError);
            VideoIngestion.disPlayProgess playProgress = new VideoIngestion.disPlayProgess(displayProgress);
            VideoIngestion.updateFrame upFrame = new VideoIngestion.updateFrame(displayFrame);

            string videoSource = @"C:\Documents and Settings\Rafale\My Documents\My Pictures\15SEC.avi";
            string atargetFile = @"E:\audio.wav";
            string vtargetFile = @"c:\VideoTestTemp\temp";
            test.ExtractImage(true,videoSource, vtargetFile, atargetFile, upFrame, trace);
            //string overlay = @"C:\Documents and Settings\Rafale\My Documents\My Pictures\image.jpg";
            //test.ImageSetting(videoSource, vtargetFile);
            //test.ExtractImage(videoSource, targetFile, upFrame, trace);
            //test.ExtractImage(1000,1500,videoSource,targetFile,
            Console.Read();
        }
    }
}


